<template>
  <div class="richtext" :style="'padding: ' + data.p_t / 2 + 'px ' + data.p_lr / 2 + 'px ' + data.p_b / 2 + 'px'">
    <div class="container" :style="contentstyle">
       <div class="notice-swiper" v-html="data.content"></div>
    </div>
  </div>
</template>

<script>
  import  {decodeUnicode} from '@/utils/index.js'
  export default {
    props: {
      data: {
        type: Object,
        default: {}
      }
    },
    computed:{
      contentstyle(){
        let a='background:' + this.data.bg_color + ';border-radius:' + this.data.r_t / 2 + 'px ' + this.data.r_t / 2 + 'px ' + this.data.r_b / 2 + 'px ' + this.data.r_b / 2 + 'px'+';padding:0 '+this.data.p_i/2+'px';
        return a
      },
    }
  }
</script>

<style scoped lang="scss">
  .richtext{
    box-sizing: border-box;
    .container{
          overflow: hidden;
          .notice-swiper{
                word-break: break-word;
                min-height: 30px;
                img{
                 
                }
          }
    }
  }
</style>
<style type="text/css">
   .notice-swiper img{
      width: 100%;
   }
</style>
